package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class TenderAbnormityReport {
    public static String tenderAbnormityReport ="<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            "<tenderAbnormityReport> \n" +
            "    <tenderProjectCode>{0}</tenderProjectCode>\n" +
            "    <bidSectionCode>{1}</bidSectionCode>\n" +
            "    <unifiedDealCodes>{2}</unifiedDealCodes>\n" +
            "    <excepitonInfor>{3}</excepitonInfor>\n" +
            "    <approvalResult>{4}</approvalResult>\n" +
            "    <approvalTime>{5}</approvalTime>\n" +
            "    <attachmentSetCode>{6}</attachmentSetCode>\n" +
            "    <platFormCode>{7}</platFormCode>\n" +
            "    <pubServicePlatCode>{8}</pubServicePlatCode>\n" +
            "    <dataTimeStamp>{9}</dataTimeStamp>\n" +
            "</tenderAbnormityReport>";

    public static void setTenderAbnormityReport(String tenderAbnormityReport,String s0,String s1,String s2,String s3,String s4,String s5,String s6,String s7,String s8,String s9) {
        TenderAbnormityReport.tenderAbnormityReport = MessageFormat.format(tenderAbnormityReport,s0,s1,s2,s3,s4,s5,s6,s7,s8,s9);
    }

    public static void setTenderAbnormityReport(){
        setTenderAbnormityReport(tenderAbnormityReport, ParameterUtils.get("tenderProjectCode"),
                                                        ParameterUtils.get("bidSectionCode"),
                                                        ParameterUtils.get("unifiedDealCodes"),
                                                        ParameterUtils.get("excepitonInfor"),
                                                        ParameterUtils.get("approvalResult"),
                                                        ParameterUtils.get("approvalTime"),
                                                        ParameterUtils.get("attachmentSetCode"),
                                                        ParameterUtils.get("platFormCode"),
                                                        ParameterUtils.get("pubServicePlatCode"),
                                                        ParameterUtils.get("dataTimeStamp")
                );
    }

//    public static void main(String[] args) {
//        setTenderAbnormityReport();
//        System.out.println(tenderAbnormityReport);
//    }
}
